<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
<%@include file="../include/extheader.jsp" %>
<script type="text/javascript" src="<%=path%>/share/js/services/platform/platform.js?version=2013072706"></script>

<style>
  .ext-ie .x-tree .x-panel-body {position: relative;}
  .ext-ie .x-tree .x-tree-root-ct {position: absolute;}
  .table{border-collapse:collapse; font-size:13px; height:20px; line-height:20px; background-color:#EFEFEF; text-align:left;}
  .table tr td{border:solid 1px #999999;}

  .plat_table_detail {
     border: 1px dotted #D0D0D0;
     background-color: #999999;
     font-weight:bold;
     padding-left: 5px;
     width:180px;
  }
  .plat_table_double {
     background-color: #99BBE8;
     padding-left: 5px;
     width:180px;
  }
  .plat_table_double_content {
     background-color: #99BBE8;
     padding-left: 5px;
     width:300px;
  }
  .plat_table_signal {
     border: 1px dotted #D0D0D0;
     padding-left: 5px;
  }
  .plat_table_signal_content {
  	 border: 1px dotted #D0D0D0;
     padding-left: 5px;
  }
  .plat_table-row-over{
	border-left:1px dotted #999999;
	border-bottom:1px dotted #999999;
	background:#efefef url(<%=path%>/share/images/default/grid/grid-blue-hd.gif) repeat-x left top;
  }
</style>
</html>
<script type="text/javascript">
	var login_user_id = '<s:property value="loginUserId"/>';
    var login_user_name = '<s:property value="userName"/>';
    var login_user_dept_name = '<s:property value="userDeptName"/>';
    var login_user_dept_id = '<s:property value="userDeptId"/>';
    var login_user_role_keys = '<s:property value="userRoleKeys"/>';
    var login_user_role_keyArr = login_user_role_keys.split(',');
    var login_user_professional = '<s:property value="userProfessional"/>';
    var sys_js_version = '<s:property value="jsVersion"/>';
	Ext.onReady(function() {
		var munuPanelItems = [];
		ajax({
           url:'platformfirstMenus',
           success:function(resp) {
               var array = getJson(resp.responseText);
               forEach(array , function(node) {
                   var testPanel = new CMS.PlatFormMenuPanel(node , "<%=path%>");
                   munuPanelItems.push(testPanel);
               });
               viewPort(munuPanelItems);
           },failure:function() {
               document.write("页面初始化失败......");
           }
       });
		var consoleManager = new CMS.ConsoleManager("变更管理平台");
        
        function viewPort(items) {
           var menuPanel = new Ext.Panel({
                region:'west',
                width:190,
                collapseMode: 'mini',
                split:true,
                title:'功能列表',
                collapsible:true,
                iconCls:'dbStructure',
                layout:'accordion',
                layoutConfig:{
                   animate:true
                },
                items: items
           });
           var viewport = new Ext.Viewport({
               layout:'border',
               items:[consoleManager , menuPanel , new CMS.PlatHeaderPanel()]
           });
           viewport.doLayout();
       }
	});
</script>